package com.worldwizards.smut.serialization;

public class ValueRecord {
	FieldDesc _field;
	Object _value;
	public ValueRecord(FieldDesc fieldDesc, Object obj) {
		_field = fieldDesc;
		_value = obj;
	}
	public void dump(String prefix) {
		if (_value instanceof ParseObject){
			((ParseObject)_value).dump(prefix);
		} else {
			System.out.println(prefix+_field.getDefiningClass().getClassName()+" Instance Field: "+_field.getFieldName()+"  Value: "+_value);
		}	
	}

}
